/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.niuweb.isad.core;

import java.util.HashMap;

/**
 *
 * @author niuxg
 */
public class Module {
    private HashMap<String, Action> _actions;
    private HashMap<String, Field> _fields;
    
    private String _name;
    private String _table;
    
    public Module setName(String name){
        _name = name;
        return this;
    }
    
    public String getName(){
        return _name;
    }
    
    public Module setTable(String table){
        if(_table.isEmpty()){
            
        }
        if(!_table.equals(table)){
            
        }
        _table = table;
        return this;
    }
    
    public String getTable(String table){
        return _table;
    }
    
    public Module addField(Field field){
        _fields.put(field.getName(), field);
        return this;
    }
    
}
